import java.util.ArrayList;
import java.util.Scanner;

public class delete {
    public static void delete_student(ArrayList<Student> studentlist){
        Scanner sc = new Scanner(System.in);
        System.out.print("请输入需要删除的学生学号：");
        String sid = sc.nextLine();
        int isid = is_exist.isid(studentlist, sid);
        System.out.println(isid);

        if (isid!=-1){
            studentlist.remove(isid);
            System.out.println("删除成功");
        }else {
            System.out.println("无该学生信息");
        }
        select.select_all(studentlist);
    }
}
